package com.cy.ppj.model.ao.rule;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @description: 角色授权
 * @author: Ocean
 * @create: 2018-08-17 17:07
 **/
@Data
@ApiModel("角色授权")
public class AuthorizationAO {

    @ApiModelProperty(value = "角色ID", example = "0", required = true)
    @NotNull(message = "角色ID不可为空")
    private Long roleId;

    @ApiModelProperty(value = "菜单ID", required = true)
    @NotNull(message = "菜单ID不可为空")
    private List<Long> menuIds;

}
